<layout name="layout" />
<script src="{$uri}Public/Scripts/PSI/Goods/MainForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/CategoryEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/GoodsEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/GoodsImportForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/SafetyInventoryEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/UX/CellEditing.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/GoodsCategoryField.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/GoodsParentCategoryField.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/GoodsBrandField.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/GoodsBOMEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Goods/SubGoodsField.js?dt={$dtFlag}" type="text/javascript"></script>

<script src="{$uri}Public/Scripts/PSI/Goods/GoodsPriceSystemEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script>
  Ext.onReady(function () {
    PSI.Const.PROD_NAME = "{$productionName}";

    var app = Ext.create("PSI.App", {
      userName: "{$loginUserName}",
      productionName: "{$productionName}"
    });

    app.add(Ext.create("PSI.Goods.MainForm", {
      pAddCategory: "{$pAddCategory}",
      pEditCategory: "{$pEditCategory}",
      pDeleteCategory: "{$pDeleteCategory}",
      pAddGoods: "{$pAddGoods}",
      pEditGoods: "{$pEditGoods}",
      pDeleteGoods: "{$pDeleteGoods}",
      pImportGoods: "{$pImportGoods}",
      pGoodsSI: "{$pGoodsSI}",
      pAddBOM: "{$pAddBOM}",
      pEditBOM: "{$pEditBOM}",
      pDeleteBOM: "{$pDeleteBOM}",
      pPriceSystem: "{$pPriceSystem}",
      pExcel: "{$pExcel}"
    }));
    app.setAppHeader({
      title: "{$title}",
      iconCls: "PSI-fid1001"
    });
  });
</script>
